<div class="body">
    <div class="featured">
        <a><img src="images/advertisement.jpg" alt=""/></a>

        <div class="gallery">
            <a><img src="images/aurora.jpg" alt=""/></a>
            <ul class="first">
                <?php
                include 'mySQLConnect.php';
                $sql3 = "SELECT * FROM category";

                $result3 = mysql_query($sql3);
                while ($row3 = mysql_fetch_array($result3)) {
                    $image_url = $row3['image_url'];

                    if (strpos($image_url, '../') !== false) {
                        $image_url = substr($image_url, 3);
                    }

                    ?>
                    <li><a href="searchProduct.php?type=cate&cat_id=<?php echo $row3['id'] ?>"><img
                                src="<?php echo $image_url ?>" alt=""/></a></li>
                <?php
                }
                include 'mySQLClose.php'; ?>
            </ul>
        </div>
    </div>
</div>